
export class errorMsg {
    private err_msg: string = ""
    private static Err:errorMsg

    private constructor() {

    }

    public static Instance():errorMsg {
        if(this.Err === undefined) {
            this.Err = new errorMsg()
        }
        return this.Err
    }


    public setErrorMsg(err_msg: string) {
        this.err_msg = err_msg
    }

    public getErrorMsg(): string {
        const data = this.err_msg
        this.err_msg = ""
        return data
    }
}
export class successMsg {
    private success_msg: string = ""
    private static success:successMsg

    private constructor() {

    }

    public static Instance():successMsg {
        if(this.success === undefined) {
            this.success = new successMsg()
        }
        return this.success
    }


    public setSuccessMsg(success_msg: string) {
        this.success_msg = success_msg
    }

    public getSuccessMsg(): string {
        const data = this.success_msg
        this.success_msg = ""
        return data
    }
}